cd /root/run/go/code/common

git pull origin main

cd /root/run/go/code/user_server

git pull origin main

export GOPRIVATE="jihe.common"
export GOPROXY=https://goproxy.cn

GO111MODULE=on go build -o user_server cmd/main.go

ssh prd1 "supervisorctl stop user_server"

scp user_server configs/production.yml prd1:/root/run/user_server

ssh prd1 "supervisorctl start user_server"

ssh prd2 "supervisorctl stop user_server"

scp user_server configs/production.yml prd2:/root/run/user_server

ssh prd2 "supervisorctl start user_server"

ssh prd3 "supervisorctl stop user_server"

scp user_server configs/production.yml prd3:/root/run/user_server

ssh prd3 "supervisorctl start user_server"